import * as types from './types'
export function changeName(name) {
  return function (dispatch, getState) {
    console.log(arguments)
    fetch('/qqq').then(data => {
      dispatch({ type: types.CHANGENAME, nnn: name })
    })
  }
  // return { type: types.CHANGENAME, nnn: name }
}
export function changeAge(age) {
  return { type: types.CHANGEAGE, aaa: age }
}
export function changeColor(color) {
  return { type: types.CHANGECOLOR, ccc: color }
}